package com.ocean.admin.model.dto.dictype;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 字典类型保存
 *
 * @author zhang
 * @since 2022/8/20 22:21
 **/
@Data
public class SysDictTypeUpdateDTO {

    /**
     * 字典主键
     */
    @NotNull(message = "请输入字典主键")
    @Schema(description = "字典主键", required = true)
    @TableId(value = "dict_id")
    private Long dictId;

    /**
     * 字典名称
     */
    @NotNull(message = "请输入字典名称")
    @Schema(description = "字典名称")
    private String dictName;

    /**
     * 字典类型
     */
    @NotNull(message = "请输入字典类型")
    @Schema(description = "字典类型")
    private String dictType;

    /**
     * 状态（0正常 1停用）
     */
    @Schema(description = "状态（0正常 1停用）")
    private Integer status;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
}
